import static org.junit.Assert.*;

import org.junit.Test;


public class PostfixTest {

	@Test
	public void testResultado() {
		Postfix a=new Postfix();
		a.setExpresion("22+");
		a.meterStack();
		assertEquals((Integer)4,a.resultado());
		
	}

	@Test
	public void testPop() {
		Postfix a=new Postfix();
		a.setExpresion("22+");
		a.meterStack();
		assertEquals((Integer)4,a.pop());
	}

	@Test
	public void testEmpty() {
		Postfix a=new Postfix();
		assertEquals(true,a.empty());
	}

}
